<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>七牛云文件上传结果</title>
</head>
<body>
    <h1>Spring Boot - Upload Status</h1>

    <div th:if="${uploadRet}">
        <ul>
            <li>key(保存文件名): <span th:text="${uploadRet.get('key').getAsString()}"></span> </li>
            <li>fname(源文件名): <span th:text="${uploadRet.get('fname').getAsString()}"></span> </li>
            <li>mimeType(文件类型): <span th:text="${uploadRet.get('mimeType').getAsString()}"></span> </li>
            <li>hash: <span th:text="${uploadRet.get('hash').getAsString()}"></span> </li>
            <li>src: <span th:text="${uploadRet.get('src').getAsString()}"></span> </li>
        </ul>
        <img th:src='@{${uploadRet.get("src").getAsString()}}'>
    </div>


    <div th:if="${code}">
        <h3 th:text="${code}"></h3>
        <p th:text="${error}"></p>
    </div>
</body>
</html>